package com.rjhch.tonglink.client.jms.mbd.local;//package com.rjhch.tonglink.client.jms.mbd.local;
//
//import java.util.Properties;
//
//import javax.ejb.MessageDriven;
//import javax.jms.JMSException;
//import javax.jms.MessageListener;
//import javax.jms.QueueConnection;
//import javax.jms.QueueSender;
//import javax.jms.QueueSession;
//import javax.jms.Session;
//import javax.jms.TextMessage;
//import javax.ejb.ActivationConfigProperty;
//import javax.jms.Message;
//import javax.naming.Context;
//import javax.naming.InitialContext;
//import javax.naming.NamingException;
//
//
//
//import com.tongtech.tmqi.Queue;
//import com.tongtech.tmqi.QueueConnectionFactory;
//
//@MessageDriven(activationConfig= {
//@ActivationConfigProperty(
//		propertyName="destination",propertyValue="lq1"),
//		@ActivationConfigProperty(
//				propertyName="destinationType",
//				propertyValue="javax.jms.Queue")},
//		mappedName="jms/MDBQueue")
//public class TestTongWebMDB implements MessageListener {
//
//	private QueueConnectionFactory queueCF;
//	private Queue mdbQueue;
//	Context ctx = null;
//	String s;
//
//	public void onMessage(Message message) {
//    	try {
//			s = ((TextMessage)message).getText();
//			System.out.println("i receive a TextMessage : " + s);
//		} catch (JMSException e1) {
//			e1.printStackTrace();
//		}
//
//    }
//
//}
